package com.itheima.demo;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;

public class Demo03 {//字节流写一个数据练习
    public static void main(String[] args) throws IOException {
        //创建字节流对象
        FileOutputStream fileOutputStream = new FileOutputStream("D:\\demo\\a.txt");
        //写数据,写入为该数字码表上对应的字母
        fileOutputStream.write(97);
        //释放资源
        fileOutputStream.close();
    }
}
